import request from '@/utils/request'

export const getBanner=()=>{
    return request({
        url:'/gateway?type=2&_CITYID_&k=5193573',
        data:{
            xHost:'mall.cfg.common-banner'
        }
    })
}


export const getDetail=(params={type:1,pageNum:1,pageSize:10})=>{
    return request({
        url:'/gateway?_CITYID_&pageNum='+params.pageNum+'&pageSize='+params.pageSize+'&type='+params.type+'&k=4202709',
        data:{
            xHost:'mall.film-ticket.film.list'
        }
    })
}


//获取购买电影票详情页信息

export const getMovDetail=(params={filmId:4885})=>{
    return request({
        url:'/gateway?filmId='+params.filmId+'&k=8248545',
        data:{
            xHost:'mall.film-ticket.film.info'
        }
    })
}

//获取电影院列表 

export const getcinemaList=(params={cityId:"4885",cinemaIds:"160,912,5650"})=>{
    return request({
        method:'post',
        url:'/gateway?k=5374007',
        data:{
            xHost:'mall.film-ticket.cinema.batch-cinema',
            "cityId":params.cityId,
            "cinemaIds":params.cinemaIds
        }
    })
}

//获取电影院ID列表

export const getcinemaIdList=(params={filmId:4795})=>{
    return request({
        url:'/gateway/?filmId='+params.filmId+'&_CITYID_&k=7399810',
        data:{
            xHost:'mall.film-ticket.cinema.film-show-cinema',
        }
    })
}
